﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Algorithms
{
    public class ContentCommand
    {
        public ContentResult GetContentResult(string contentType)
        {
            ContentResult _cResult = new ContentResult();
            ApplicationInfo appInfo = ApplicationInfo.GetInstance();

            if (contentType == "/HELP")
                _cResult.Content = appInfo.Help;
            else if (contentType == "/LICENSE")
                _cResult.Content = appInfo.License;

            return _cResult;
        }
    }
}
